package sunyu.service.shiro;


import com.github.pagehelper.Page;
import sunyu.mapper.shiro.pojo.Resource;

import java.util.List;
import java.util.Map;

/**
 * @author 孙宇
 */
public interface ResourceService {

    List<Resource> select(Page page,
                          Map<String, Object> params);


    Boolean insert(Resource resource);

    Boolean delete(String id);

    Resource selectById(String id);

    Boolean update(Resource resource);

    Long count(Map<String, Object> params);
}
